package com.example.footballsystem.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LikeMapper {
    @Select("select postID from love where userID=#{userID}")
    public List<Integer> getLikeByUserID(String userID);
    @Insert("insert into love value (#{userID},#{postID})")
    public Boolean insertLike(String userID, int postID);
}
